//
//  EmailValidator.m
//  策略模式
//
//  Created by YuanJiang on 2019/9/5.
//  Copyright © 2019 llbt. All rights reserved.
//

#import "EmailValidator.h"

@implementation EmailValidator

-(BOOL)validateIput:(UITextField *)tf
{
    if (tf.text.length <= 0) {
        self.errorMessage = @"邮箱没有输入";
    }else{
        self.errorMessage = @"";
    }
    return self.errorMessage.length?NO:YES;
}



@end
